﻿using QuickGraph;
using System.Collections.Generic;

namespace InteractiveFiction.Model
{
    public class World
    {
        public World()
        {
           
        }

        private BidirectionalGraph<StoryNode, StoryEdge> _storyGraph = new BidirectionalGraph<StoryNode, StoryEdge>(false);
        private ICollection<Character> _npcs = new LinkedList<Character>();
        private Character _player;

        /// <summary>
        /// Takes the command for the player character to execute, updates everything in the world and returns the events which happened.
        /// </summary>
        /// <param name="playerCommand"></param>
        /// <returns></returns>
        public IEnumerator<StoryEvent> Update(Command playerCommand)
        {
            List<StoryEvent> events = new List<StoryEvent>();
            //Execute the command

            return events.GetEnumerator();
        }
    }
}
